Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 987 Bytes

File metadata and controls

38 lines (26 loc) · 987 Bytes

Name-Clashing Import

Definition:

  • An imported element causes a name clash with a declaration in the importing module or another imported element.

Code Example:

module Foo {
  const charstring MY_CONST := "foo";
}

module Bar {
  import from Foo all;

  const charstring MY_CONST := "bar";

  function f(in charstring s) return boolean {
    if (MY_CONST == s) {
      return true;
    }
    return false;
  }
}

References:

Quality attributes